package com.wushi.lenovo.asia5b.app_di.credit.presenter;

import com.mvp.base.BasePresenter;
import com.wushi.lenovo.asia5b.app_di.credit.mvpview.WithdrawActivityView;
import com.wushi.lenovo.asia5b.app_http.ApiService;
import com.wushi.lenovo.asia5b.app_model.other.UserInfo;

import javax.inject.Inject;


/**
 * Created by zhangyuncai on 2019/1/21.
 */
public class WithdrawActivityPresenter extends BasePresenter<WithdrawActivityView> {

    ApiService apiService;

    @Inject
    public WithdrawActivityPresenter(ApiService apiService) {
        this.apiService = apiService;
    }


    public void getBanks() {
        int countryId = UserInfo.getCountryId();
        baseSubscribe(apiService.getWithdrawBanks(countryId), listResultModel -> {
            getView().getBanksResult(listResultModel);
        });
    }

}